package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.domain.Permission;
import cn.wolfcode.domain.Role;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.ServletOutputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;

public interface IEmployeeService {
    void insert(Employee employee, Long[] ids);

    void delete(Long id);

    void update(Employee employee, Long[] ids);

    Employee selectId(Long id);

    List<Employee> selectAll();

    PageInfo<Employee> query(QueryObject qo);

    List<Role> selectRolesByEmpId(Long id);

    Employee checkUser(String username, String password);

    List<Permission> selectPermissionByEmpId(Long empId);

    void exportXls(ServletOutputStream outputStream) throws IOException;

    void importXls(MultipartFile file) throws IOException;
}